package com.ciaojian.bytedance.vo.bytedance;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class ByteDanceOrderNotifyResponseVo implements Serializable {

    /**
     * err_no : 0
     * err_tips : success
     * data : {"out_order_no":"89876867867087","pay_expire_seconds":300,"order_entry_schema":{"path":"page/refundDetail/xxx","params":"{\"id\": 1}"},"order_valid_time":[{"goods_id":"xxx","valid_start_time":1232312000,"valid_end_time":1231231000}],"order_goods_info":[{"goods_id":"xxx","merchant_uid":"12345"}]}
     */

    private int err_no;
    private String err_tips;
    private DataBean data;

    @Data
    public static class DataBean implements Serializable {
        /**
         * out_order_no : 89876867867087
         * pay_expire_seconds : 300
         * order_entry_schema : {"path":"page/refundDetail/xxx","params":"{\"id\": 1}"}
         * order_valid_time : [{"goods_id":"xxx","valid_start_time":1232312000,"valid_end_time":1231231000}]
         * order_goods_info : [{"goods_id":"xxx","merchant_uid":"12345"}]
         */

        private String out_order_no;
        private int pay_expire_seconds;
        private int cp_delivery_type;
        private int delivery_type;
        private String delivery_qrcode_redirect;
        private String pay_notify_url;
        private OrderEntrySchemaBean order_entry_schema;
        private List<OrderValidTimeBean> order_valid_time;
        private List<OrderGoodsInfoBean> order_goods_info; /*订单的商品相关信息*/ //非必填

        @Data
        public static class OrderEntrySchemaBean implements Serializable {
            /**
             * path : page/refundDetail/xxx
             * params : {"id": 1}
             */

            private String path;
            private String params;
        }

        @Data
        public static class OrderValidTimeBean implements Serializable {
            /**
             * goods_id : xxx
             * valid_start_time : 1232312000
             * valid_end_time : 1231231000
             */

            private String goods_id;
            private int valid_start_time;
            private int valid_end_time;
        }

        @Data
        public static class OrderGoodsInfoBean implements Serializable {
            /**
             * goods_id : xxx
             * merchant_uid : 12345
             */

            private String goods_id;
            private String merchant_uid;
        }
    }
}
